package com.sy.mapper;

import com.sy.dto.MemberDto;
import com.sy.entity.Member;
import com.sy.vo.MemberVo;

import java.util.List;

/**
 * description: MemberMapper <br>
 * date: 2022/6/24 1:39 AM <br>
 * author: zoumaoji <br>
 * version: 1.0 <br>
 */
public interface MemberMapper {
    /**
     * 查询所有会员信息
     * @return
     */
    List<Member> selectAllMembers();

    /**
     * 注册用户信息
     * @return
     */
    Boolean registerMember(MemberVo memberVo);

    /**
     * 用户登录
     * @param memberVo
     * @return
     */
    MemberDto login(MemberVo memberVo);


    /**
     * 根据用户id查询用户信息
     * @param id
     * @return
     */
    MemberDto selectMemberById(Integer id);



    /**
     * 更新用户信息
     * @param member
     * @return
     */
    Boolean updateMember(Member member);

    /**
     * 根据用户名查找用户
     * @param memberVo
     * @return
     */
    Member selectMemberByUserName(MemberVo memberVo);
}
